package com.yvan.serverless;

import com.yvan.serverless.jdbc.InteropDataSource;
import com.yvan.serverless.mvc.HttpRequest;
import com.yvan.serverless.utils.FileUtilExt;
import com.yvan.serverless.utils.OtherUtils;

public class GraalApplication {
    public static final GraalApplication Instance = new GraalApplication();

    private InteropDataSource datasource;

    public InteropDataSource getDatasource() {
        return datasource;
    }

    public void setDatasource(InteropDataSource jdbcDataSource) {
        this.datasource = jdbcDataSource;
    }

    public HttpRequest getHttpRequest() {
        return HttpRequest.Instance;
    }

    public FileUtilExt getFileUtil() {
        return FileUtilExt.Instance;
    }

    public OtherUtils getUtil() {
        return OtherUtils.INSTANCE;
    }
}
